package com.xiaoruyuan.firstday.dao;

import com.xiaoruyuan.firstday.domain.Member;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 会员DAO类
 */
public interface MemberDAO extends JpaRepository<Member, Long> {
    /**
     * 根据手机号查询会员
     *
     * @param mobile 手机号
     * @return 会员信息
     */
    Member findByMobile(String mobile);
}
